<?php
header("location:aplicacion.html"); 
include("conexion.php");
$email=$_POST['email'];
$pwd=$_POST['pwd'];
$id=$_POST['id'];
if(isset($id,$email,$pwd)&&($id!='' && $email!='' && $pwd!='')){
	mysql_select_db($dbname, $con);
	$sql="INSERT INTO correo VALUES
	('0','$email','$pwd','$id')";

	if(!mysql_query($sql)){
		echo mysql_error();
		echo $x=0;
	}else{
		echo "location.href='aplicacion.html'";
	}
}else{
	echo "datos invalidos";
}

?>